package middleware.llvm.value;

/**
 * IR 中的使用关系，用于数据流分析。
 *
 * @author 杨凯伟
 * @date 2024/10/30
 */
public class Use {
    private final User user;
    private Value value;
    private int pos;

    public Use(User user, Value value, int pos) {
        this.user = user;
        this.value = value;
        this.pos = pos;
    }

    public User getUser() {
        return user;
    }

    public Value getValue() {
        return value;
    }

    public void setValue(Value value) {
        this.value = value;
    }

    public int getPos() {
        return pos;
    }

    public void setPos(int pos) {
        this.pos = pos;
    }
}
